﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Konstaller
{
    public class CheckBox
    {
        private bool check;
        private string tx;

        public bool Checked
        {
            get { return check; }
            set { check = value; }
        }

        public string Text
        {
            get { return tx; }
            set { tx = value; }
        }

        const char ck = '\u257A';

        public void Draw(int x, int y)
        {

                Console.SetCursorPosition(x, y);
                Console.BackgroundColor = ConsoleColor.Blue;
                Console.ForegroundColor = ConsoleColor.Gray;

                Console.Write("[");
                if (!Checked)
                {
                    Console.Write(" ");
                }
                else
                {
                    Console.Write("X");
                }

                Console.Write("] ");
                Console.ForegroundColor = ConsoleColor.White;
                Console.Write(Text);


        }
    }
}
